package com.ruoyi.human.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 不良事件报告对象 adverse_event_report
 * 
 * @author gw
 * @date 2025-01-06
 */
public class AdverseEventReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 不良事件报告ID */
    private Long eventId;

    /** 实验ID */
    @Excel(name = "实验ID")
    private Long trialId;

    /** 参与者ID */
    @Excel(name = "参与者ID")
    private Long participantId;
    @Excel(name = "参与者的名字")
    private String participantName;
    /** 临床实验名称 */
    @Excel(name = "临床实验名称")
    private String trialName;

    public String getParticipantName() {
        return participantName;
    }

    public void setParticipantName(String participantName) {
        this.participantName = participantName;
    }

    public String getTrialName() {
        return trialName;
    }

    public void setTrialName(String trialName) {
        this.trialName = trialName;
    }

    /** 事件类型 */
    @Excel(name = "事件类型")
    private String eventType;

    /** 事件描述 */
    @Excel(name = "事件描述")
    private String eventDescription;

    /** 事件发生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "事件发生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eventDate;

    /** 事件严重性 */
    @Excel(name = "事件严重性")
    private String severity;

    /** 采取的措施 */
    @Excel(name = "采取的措施")
    private String actionTaken;

    /** 报告日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报告日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportDate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deletedBy;

    /** 删除标记 */
    @Excel(name = "删除标记")
    private Integer deletedFlag;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long version;

    public void setEventId(Long eventId) 
    {
        this.eventId = eventId;
    }

    public Long getEventId() 
    {
        return eventId;
    }
    public void setTrialId(Long trialId) 
    {
        this.trialId = trialId;
    }

    public Long getTrialId() 
    {
        return trialId;
    }
    public void setParticipantId(Long participantId) 
    {
        this.participantId = participantId;
    }

    public Long getParticipantId() 
    {
        return participantId;
    }
    public void setEventType(String eventType) 
    {
        this.eventType = eventType;
    }

    public String getEventType() 
    {
        return eventType;
    }
    public void setEventDescription(String eventDescription) 
    {
        this.eventDescription = eventDescription;
    }

    public String getEventDescription() 
    {
        return eventDescription;
    }
    public void setEventDate(Date eventDate) 
    {
        this.eventDate = eventDate;
    }

    public Date getEventDate() 
    {
        return eventDate;
    }
    public void setSeverity(String severity) 
    {
        this.severity = severity;
    }

    public String getSeverity() 
    {
        return severity;
    }
    public void setActionTaken(String actionTaken) 
    {
        this.actionTaken = actionTaken;
    }

    public String getActionTaken() 
    {
        return actionTaken;
    }
    public void setReportDate(Date reportDate) 
    {
        this.reportDate = reportDate;
    }

    public Date getReportDate() 
    {
        return reportDate;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }
    public void setDeletedBy(String deletedBy) 
    {
        this.deletedBy = deletedBy;
    }

    public String getDeletedBy() 
    {
        return deletedBy;
    }
    public void setDeletedFlag(Integer deletedFlag) 
    {
        this.deletedFlag = deletedFlag;
    }

    public Integer getDeletedFlag() 
    {
        return deletedFlag;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("eventId", getEventId())
            .append("trialId", getTrialId())
            .append("participantId", getParticipantId())
            .append("eventType", getEventType())
            .append("eventDescription", getEventDescription())
            .append("eventDate", getEventDate())
            .append("severity", getSeverity())
            .append("actionTaken", getActionTaken())
            .append("reportDate", getReportDate())
            .append("createdAt", getCreatedAt())
            .append("createdBy", getCreatedBy())
            .append("updatedAt", getUpdatedAt())
            .append("updatedBy", getUpdatedBy())
            .append("deletedAt", getDeletedAt())
            .append("deletedBy", getDeletedBy())
            .append("deletedFlag", getDeletedFlag())
            .append("version", getVersion())
            .toString();
    }
}
